#include <stdio.h>
#include <stdbool.h>


bool isPalindrome(int x)
{
    int temp = x;
    int a = 0;
    if(x < 0)
    return false;
    while (x != 0)
    {
        a = a * 10 + x % 10;
        x = x / 10;
    }
    if(a != temp)
    return false;
    else
    return true;

}



int main()
{
    int a = 123;
    int b = 0;
    printf("%d\n",isPalindrome(b));
}